<?if($this->ret['data']):?>
<div class="album-content">
<?foreach ($this->ret['data'] as $row):?>
	<div class="myalbum" >
				<ul>
					<li class="title"><a href="http://www.<?=DOMAIN?><?= self::_makeURL('index','index','view_photo',array('cid'=>$row['id'],'ctid'=>$row['cartoon_id']))?>"><?= $row['chapter_title']?></a></li>
					<li class="count">共<span><?= $row['pic_num']?></span>张图片</li>
					<li class="create-time"><span>创建于：</span><?= date("Y-m-d",$row['add_time'])?></li>
					<?if(self::$is_self):?>
					<li class="tools">
					<a href="javascript:void(0);" onclick="modifyChapter(<?= $row['id']?>,'<?= self::_makeURL($this->app,'index','edit_chapter')?>')">编辑</a>
					<span class="spacing-line">|</span>
						<a href="javascript:void(0);" onclick="delChapter(<?= $row['id']?>,'<?= self::_makeURL($this->app,'index','remove_chapter')?>')">删除</a></li>
					<?else:?>
					<li class="tools"><span class="spacing-line">&nbsp;</span></li>
					<?endif;?>
				</ul>
			</div><!-- myalbum-->
			<div id='panel_<?= $row['id']?>' style='display:none;'>
			<ul class="create-album-form"> 
							<li><span>章节名：</span><input id='cname_<?=$row['id']?>' name="cname" type="text" maxlength=11  value="<?= $row['chapter_title']?>" /></li> 
							<li><span>详细描述：</span><textarea id='info_<?= $row['id']?>' name="info" cols="" rows=""><?= $row['info']?></textarea></li> 
							<input type=hidden name=base id='base_<?= $row['id']?>' value=<?= $row['id']?> />
							</li> 
			</ul> 			
			</div>
<?endforeach;?>			
</div>
<?=$this->ret['pages']?>
<?else:?>
 <i:info type="friendly" xmlns:i="178">该漫画还没有章节</i:info>
<?endif;?>
<div id='addChapter' style='display:none;'>
章节名称：<input type="text" name='chapter_title' id="chapter_title" maxlength=100 class="blog_input" style="width: 150px;"/><br /><br />
所属漫画：<select name="catoon" id="cartoon" >
			<option value="0" >---请选择---</option>
		</select>
章节介绍：<textarea id='info_add'></textarea><br /><br />
章节排序：<input type="text" value="0" name="ordernum" id="ordernum" />
</div>